import request from "@/utils/request";
//获取权限列表的数据
export const getPermissionList=()=>request.get('/sys/permission')
//添加或者修改权限的回调
export const addOrUpdatePermission=(data)=>{
    if(data.id) {
        return request.put(`/sys/permission/${data.id}`,data)
    }else {
        return request.post('/sys/permission',data)
    }
}
//获取权限信息
export const getPermissionInfo=(id)=>request.get(`/sys/permission/${id}`)
//删除回调
export const deletePermission=(id)=>request.delete(`/sys/permission/${id}`)